<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.chaoyue.entity.*"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <title>My JSP 'msg.jsp' starting page</title>
    <meta http-equiv="Refresh" content="2" />
	
  </head>
  
  <body>
  <% 
  	List<Message> messageList =(List<Message>) application.getAttribute("messageList"); 
  		if(messageList!=null){
  			for(Message msg:messageList){
  		             
   %>
    <div>
    	<h4><%=msg.getTime() %>&nbsp;&nbsp;&nbsp;<%=msg.getName()%></h4>
    	<P>
    	<%=msg.getMsg() %>
    	
    	</P>
    </div>
   
   <%} }%>
  </body>
</html>
 